
<html><HEAD>
<LINK REL=STYLESHEET HREF="default.css" TYPE="text/css">
<TITLE>
About edit styles </TITLE>
</HEAD>
<BODY>

<!-- Header -->
<p class="ancestor" align="right"><A HREF="pbugp201.htm">Previous</A>&nbsp;&nbsp;<A HREF="pbugp203.htm" >Next</A>
<!-- End Header -->
<A NAME="BFCBBIBJ"></A><h1>About edit styles </h1>
<A NAME="TI6615"></A><p>You can define edit styles for columns. Edit styles specify
how column data is presented in DataWindow objects. Unlike display formats,
edit styles do not only affect the display of data; they also affect
how users interact with the data at runtime. Once you define
an edit style, it can be used by any column of the appropriate datatype
in the database.</p>
<A NAME="TI6616"></A><h4>When edit styles are used</h4>
<A NAME="TI6617"></A><p>If both a display format and an edit style have been assigned
to a column, the edit style is always used, with one exception.
When you assign an EditMask edit style to a column, you can check
the Use Format check box on the Format property page for the column
to use the edit mask format when focus is on the column, and the
display format mask when focus is off the column.</p>
<A NAME="TI6618"></A><h4>Edit styles</h4>
<A NAME="TI6619"></A><p><A HREF="pbugp202.htm#BHAHDDEA">Table 22-8</A> shows
the available edit styles.</p>
<A NAME="BHAHDDEA"></A><table cellspacing=0 cellpadding=6 border=1 frame="void" rules="all"><caption>Table 22-8: Edit styles</caption>
<tr><th  rowspan="1"  ><A NAME="TI6620"></A>Edit style</th>
<th  rowspan="1"  ><A NAME="TI6621"></A>What the edit style does</th>
<th  rowspan="1"  ><A NAME="TI6622"></A>Example</th>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6623"></A>Edit box (default)</td>
<td  rowspan="1"  ><A NAME="TI6624"></A>Displays a value in the box<A NAME="TI6625"></A><p>For data entry, type a value</p></td>
<td  rowspan="1"  ><A NAME="TI6626"></A><br><img src="images/dwdis03.gif">
</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6627"></A>DropDownListBox</td>
<td  rowspan="1"  ><A NAME="TI6628"></A>Displays a value from the drop-down
list<A NAME="TI6629"></A><p>For data entry, select or enter a value</p></td>
<td  rowspan="1"  ><A NAME="TI6630"></A><br><img src="images/dwdis04.gif">
</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6631"></A>CheckBox</td>
<td  rowspan="1"  ><A NAME="TI6632"></A>Displays a check box selected or cleared<A NAME="TI6633"></A><p>For data entry, select or clear the check box</p></td>
<td  rowspan="1"  ><A NAME="TI6634"></A><br><img src="images/dwdis05.gif">
</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6635"></A>RadioButtons</td>
<td  rowspan="1"  ><A NAME="TI6636"></A>Displays radio buttons, one of which
is selected<A NAME="TI6637"></A><p>For data entry, select one of the radio buttons</p></td>
<td  rowspan="1"  ><A NAME="TI6638"></A><br><img src="images/dwdis06.gif">
</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6639"></A>EditMask</td>
<td  rowspan="1"  ><A NAME="TI6640"></A>Displays formatted data<A NAME="TI6641"></A><p>For data entry, type a value</p></td>
<td  rowspan="1"  ><A NAME="TI6642"></A><br><img src="images/dwdis07.gif">
</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6643"></A>DropDownDataWindow</td>
<td  rowspan="1"  ><A NAME="TI6644"></A>Displays a value from a drop-down
DataWindow<A NAME="TI6645"></A><p>For data entry, select a value</p></td>
<td  rowspan="1"  ><A NAME="TI6646"></A><br><img src="images/dwdis08.gif">
</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6647"></A>RichText</td>
<td  rowspan="1"  ><A NAME="TI6648"></A>Allows display of data in rich text formats.</td>
<td  rowspan="1"  ><br><img src="images/rtfield1.gif">
</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6649"></A>InkEdit</td>
<td  rowspan="1"  ><A NAME="TI6650"></A>On Tablet PCs, displays an InkEdit control
so the user can enter data with the stylus.</td>
<td  rowspan="1"  ><A NAME="TI6651"></A></td>
</tr>
</table>
<A NAME="TI6652"></A><p>For example, suppose you have a column <b>Status</b> that
takes one of three values: the letters A, T, and L, each representing
a status (Active, Terminated, or On Leave). If you assign it the
RadioButton edit style, userscan simply click a button instead
of having to type A, T, or L. You do not have to create a validation
rule to validate typed input.</p>

